MICRO TRONIC SERVER v3
=======================

Major fixes:
- Admin login/session protection for the entire portal.
- Web portal files are not directly accessible without login.
- index.html/about.html/files.html/system.html/settings.html/logs.html/style.css/script.js are protected.
- Protected web assets cannot be listed, downloaded or deleted through the HTTP API.
- Large-file upload uses 512 KB resumable chunks.
- Interrupted upload retries the current chunk instead of restarting the whole file.
- Upload is written to NAME.part and renamed to the final name only after completion.
- Existing partial uploads are detected and resumed automatically.
- Download supports normal attachment mode and inline preview mode.
- Delete uses authenticated POST endpoint.
- Ethernet has priority; WiFi is backup and network mode is continuously reevaluated.
- SD remains on its dedicated SPI bus.

ADMIN LOGIN
-----------
ID:       admin
Password: MT@Admin2026!

CHANGE THESE IN THE FIRMWARE:
#define ADMIN_USER "admin"
#define ADMIN_PASS "MT@Admin2026!"

IMPORTANT HARDWARE/BUILD
------------------------
Target: ESP32-S3 N16R8
Arduino-ESP32 3.x
W5500 + ILI9341 + dedicated SD SPI

WEB FILES TO COPY TO SD ROOT
----------------------------
index.html
files.html
system.html
settings.html
logs.html
about.html
style.css
script.js

Do not expose the SD card over an unauthenticated FTP/HTTP endpoint if this device will be reachable outside your trusted LAN.

After flashing:
1. Copy the web files to SD root.
2. Boot the ESP32-S3.
3. Open the displayed IP in a browser.
4. Login with the admin credentials above.

If a previous upload left a .part file, the new uploader can resume it automatically when the same filename is selected.
